package com.itheima.domain;

public class Student {

    private String name;
    private int age;
    public  String school;

    public Student() {
    }

    private Student(String name) {
        this.name=name;
    }
    private Student(int age) {
        this.age=age;
    }

    public Student(String name, int age, String school) {
        this.name = name;
        this.age = age;
        this.school = school;
    }

    public void sing(){
        System.out.println("sing方法执行了");
    }
    public void dance(String name){
        System.out.println("带参数的dance执行了，参数是："+name);
    }
    public String playbasketball(String name,int age){
        System.out.println("两个参数的方法");
        return "我是返回值";
    }
    private void study(String name){
        System.out.println("私有的study方法的:"+name);
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", age=" + age +
                ", school='" + school + '\'' +
                '}';
    }
}
